package cn.sunzq.springdata.elasticsearch.demo.entity.test;

    import java.io.Serializable;
    import java.math.BigDecimal;

    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

/**
* <p>
    * 
    * </p>
*
* @author 孙中泉
* @since 2021-07-20
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class TempLincolnshireShort implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private String year;

    private String month;

    private String day;

    private String hours;

    private BigDecimal value;

    public String getTime(){
        return year + "-" +  month + "-" + day + "T" + hours.substring(0, 2) + ":" +  hours.substring(2, 4) + ":00.000";
    }

}
